
window.onload = function(){
        var brand_ul = document.getElementById("brand_ul");
        var brand_li = brand_ul.getElementsByTagName("li");
        for (var i = 0; i < brand_li.length; i++) {
        	switch(i){
        		case 0:
        			brand_li[0].style.background = "url(img/brand.png) left 0px no-repeat";
        			break;
        		case 1:
        			brand_li[1].style.background = "url(img/brand.png) -54px 0px no-repeat";
        			break;
        		case 2:
        			brand_li[2].style.background = "url(img/brand.png) -106px 0px no-repeat";
        			break;
        		case 3:
        			brand_li[3].style.background = "url(img/brand.png) -158px 0px no-repeat";
        			break;
        		case 4:
        			brand_li[4].style.background = "url(img/brand.png) -209px 0px no-repeat";
        			break;
        		case 5:
        			brand_li[5].style.background = "url(img/brand.png) -261px 0px no-repeat";
        			break;
        		case 6:
        			brand_li[6].style.background = "url(img/brand.png) -313px 0px no-repeat";
        			break;
        		case 7:
        			brand_li[7].style.background = "url(img/brand.png) -365px 0px no-repeat";
        			break;
        		case 8:
        			brand_li[8].style.background = "url(img/brand.png) -416px 0px no-repeat";
        			break;
        		case 9:
        			brand_li[9].style.background = "url(img/brand.png) -470px 0px no-repeat";
        			break;
        		case 10:
        			brand_li[10].style.background = "url(img/brand.png) right 0px no-repeat";
        			break;

        		default:
        			break;
        	}
    }
        var third_part_logo = document.getElementsByClassName("footer_left")[0];
        var third_part_li = third_part_logo.getElementsByTagName("ul")[0].getElementsByTagName("li");
        for (var i = 0; i < third_part_li.length; i++) {
            switch(i){
                case 0:
                    third_part_li[0].style.background = "url(img/3part_logo.png) 0px 0px no-repeat";
                    break;
                case 1:
                    third_part_li[1].style.background = "url(img/3part_logo.png) 0px -54px no-repeat";
                    break;
                case 2:
                    third_part_li[2].style.background = "url(img/3part_logo.png) 0px -109px no-repeat";  
                    break;

                default:
                    break;
            }
        }
};